/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelOtrasGestiones.java
 *
 * Created on 30/05/2011, 12:23:50 PM
 */
package gui;
import controlador.*;
import javax.swing.*;
import java.util.*;
import logica.*;
/**
 *
 * @author Gamboa Family
 */
public class PanelOtrasGestiones extends javax.swing.JPanel {
    String campo1, campo2;
    /** Creates new form PanelOtrasGestiones */
    public PanelOtrasGestiones() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane5 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        jLabel41 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jTextField17 = new javax.swing.JTextField();
        jTextField18 = new javax.swing.JTextField();
        jButton34 = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTADescripcioTipo1 = new javax.swing.JTextArea();
        jPanel24 = new javax.swing.JPanel();
        jLabel51 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jTextField28 = new javax.swing.JTextField();
        jButton38 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTADescripcioTipo2 = new javax.swing.JTextArea();
        jPanel22 = new javax.swing.JPanel();
        jButton13 = new javax.swing.JButton();
        jPanel16 = new javax.swing.JPanel();
        jLabel47 = new javax.swing.JLabel();
        jTextField22 = new javax.swing.JTextField();
        jButton41 = new javax.swing.JButton();
        jPanel29 = new javax.swing.JPanel();
        jLabel63 = new javax.swing.JLabel();
        jTextField33 = new javax.swing.JTextField();
        jButton35 = new javax.swing.JButton();
        jPanel30 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jTextField8 = new javax.swing.JTextField();
        jTextField9 = new javax.swing.JTextField();
        jButton31 = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTADescripcionPalabra1 = new javax.swing.JTextArea();
        jPanel31 = new javax.swing.JPanel();
        jLabel64 = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        jTextField34 = new javax.swing.JTextField();
        jTextField38 = new javax.swing.JTextField();
        jButton42 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTADescripcionPalabra2 = new javax.swing.JTextArea();
        jPanel32 = new javax.swing.JPanel();
        jLabel67 = new javax.swing.JLabel();
        jButton44 = new javax.swing.JButton();
        jTextField41 = new javax.swing.JTextField();
        jPanel33 = new javax.swing.JPanel();
        jLabel68 = new javax.swing.JLabel();
        jButton43 = new javax.swing.JButton();
        jTextField40 = new javax.swing.JTextField();
        jPanel34 = new javax.swing.JPanel();
        jButton14 = new javax.swing.JButton();
        jPanel37 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jTextField5 = new javax.swing.JTextField();
        jTextField6 = new javax.swing.JTextField();
        jTextField7 = new javax.swing.JTextField();
        jButton19 = new javax.swing.JButton();
        jPanel23 = new javax.swing.JPanel();
        jLabel46 = new javax.swing.JLabel();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jTextField21 = new javax.swing.JTextField();
        jTextField23 = new javax.swing.JTextField();
        jTextField25 = new javax.swing.JTextField();
        jButton22 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jPanel15 = new javax.swing.JPanel();
        jLabel44 = new javax.swing.JLabel();
        jTextField19 = new javax.swing.JTextField();
        jButton20 = new javax.swing.JButton();
        jPanel38 = new javax.swing.JPanel();
        jLabel45 = new javax.swing.JLabel();
        jTextField20 = new javax.swing.JTextField();
        jButton21 = new javax.swing.JButton();
        jPanel40 = new javax.swing.JPanel();
        jButton16 = new javax.swing.JButton();
        jPanel13 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jTextField11 = new javax.swing.JTextField();
        jTextField12 = new javax.swing.JTextField();
        jButton32 = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTADescripcionArea1 = new javax.swing.JTextArea();
        jPanel26 = new javax.swing.JPanel();
        jPanel28 = new javax.swing.JPanel();
        jTextField37 = new javax.swing.JTextField();
        jLabel61 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jButton40 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel60 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        jTextField35 = new javax.swing.JTextField();
        jTextField32 = new javax.swing.JTextField();
        jLabel58 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTADescripcionArea2 = new javax.swing.JTextArea();
        jPanel20 = new javax.swing.JPanel();
        jLabel53 = new javax.swing.JLabel();
        jTextField27 = new javax.swing.JTextField();
        jButton37 = new javax.swing.JButton();
        jPanel36 = new javax.swing.JPanel();
        jLabel69 = new javax.swing.JLabel();
        jTextField39 = new javax.swing.JTextField();
        jButton47 = new javax.swing.JButton();
        jPanel39 = new javax.swing.JPanel();
        jButton15 = new javax.swing.JButton();
        jLabel62 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));

        jTabbedPane5.setBackground(new java.awt.Color(255, 255, 255));
        jTabbedPane5.setForeground(new java.awt.Color(130, 134, 135));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));

        jPanel14.setBackground(new java.awt.Color(255, 255, 255));
        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Registrar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel14.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel41.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel41.setForeground(new java.awt.Color(130, 134, 135));
        jLabel41.setText("Codigo");

        jLabel42.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel42.setForeground(new java.awt.Color(130, 134, 135));
        jLabel42.setText("Nombre");

        jLabel43.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel43.setForeground(new java.awt.Color(130, 134, 135));
        jLabel43.setText("Descripcion");

        jTextField17.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField17ActionPerformed(evt);
            }
        });

        jTextField18.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField18ActionPerformed(evt);
            }
        });

        jButton34.setBackground(new java.awt.Color(255, 255, 255));
        jButton34.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton34.setForeground(new java.awt.Color(235, 30, 30));
        jButton34.setText("Registrar");
        jButton34.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton34ActionPerformed(evt);
            }
        });

        jTADescripcioTipo1.setColumns(20);
        jTADescripcioTipo1.setFont(new java.awt.Font("Verdana", 0, 12));
        jTADescripcioTipo1.setLineWrap(true);
        jTADescripcioTipo1.setRows(5);
        jScrollPane1.setViewportView(jTADescripcioTipo1);

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel14Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 313, Short.MAX_VALUE))
                        .addGroup(jPanel14Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel41)
                                .addComponent(jLabel42))
                            .addGap(40, 40, 40)
                            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jTextField18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)
                                .addComponent(jTextField17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel14Layout.createSequentialGroup()
                            .addGap(136, 136, 136)
                            .addComponent(jLabel43)))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGap(117, 117, 117)
                        .addComponent(jButton34)))
                .addContainerGap())
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel41)
                    .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel43)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton34)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jPanel24.setBackground(new java.awt.Color(255, 255, 255));
        jPanel24.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel24.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel51.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel51.setForeground(new java.awt.Color(130, 134, 135));
        jLabel51.setText("Codigo");

        jLabel52.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel52.setForeground(new java.awt.Color(130, 134, 135));
        jLabel52.setText("Nombre");

        jLabel54.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel54.setForeground(new java.awt.Color(130, 134, 135));
        jLabel54.setText("Descripcion");

        jTextField26.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField26ActionPerformed(evt);
            }
        });

        jTextField28.setEditable(false);
        jTextField28.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField28.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField28ActionPerformed(evt);
            }
        });

        jButton38.setBackground(new java.awt.Color(255, 255, 255));
        jButton38.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton38.setForeground(new java.awt.Color(235, 30, 30));
        jButton38.setText("Modificar");
        jButton38.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton38ActionPerformed(evt);
            }
        });

        jButton5.setBackground(new java.awt.Color(255, 255, 255));
        jButton5.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton5.setForeground(new java.awt.Color(235, 30, 30));
        jButton5.setText("Guardar");
        jButton5.setEnabled(false);
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jTADescripcioTipo2.setColumns(10);
        jTADescripcioTipo2.setEditable(false);
        jTADescripcioTipo2.setFont(new java.awt.Font("Verdana", 0, 12));
        jTADescripcioTipo2.setLineWrap(true);
        jTADescripcioTipo2.setRows(4);
        jTADescripcioTipo2.setWrapStyleWord(true);
        jTADescripcioTipo2.setOpaque(false);
        jScrollPane3.setViewportView(jTADescripcioTipo2);

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel24Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE))
                        .addGroup(jPanel24Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel52)
                                .addComponent(jLabel51))
                            .addGap(29, 29, 29)
                            .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(jPanel24Layout.createSequentialGroup()
                                    .addComponent(jTextField26, javax.swing.GroupLayout.DEFAULT_SIZE, 162, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton38))
                                .addComponent(jTextField28, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 261, Short.MAX_VALUE)))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel24Layout.createSequentialGroup()
                            .addGap(138, 138, 138)
                            .addComponent(jLabel54)))
                    .addGroup(jPanel24Layout.createSequentialGroup()
                        .addGap(141, 141, 141)
                        .addComponent(jButton5)))
                .addContainerGap())
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel51)
                    .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton38))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel52)
                    .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel54)
                .addGap(4, 4, 4)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton5)
                .addGap(18, 18, 18))
        );

        jPanel22.setBackground(new java.awt.Color(255, 255, 255));

        jButton13.setBackground(new java.awt.Color(255, 255, 255));
        jButton13.setFont(new java.awt.Font("Verdana", 1, 14));
        jButton13.setForeground(new java.awt.Color(235, 30, 30));
        jButton13.setText("Limpiar Todo");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addGap(295, 295, 295)
                .addComponent(jButton13)
                .addContainerGap(307, Short.MAX_VALUE))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addComponent(jButton13)
                .addContainerGap())
        );

        jPanel16.setBackground(new java.awt.Color(255, 255, 255));
        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Activar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel16.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel47.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel47.setForeground(new java.awt.Color(130, 134, 135));
        jLabel47.setText("Codigo");

        jTextField22.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField22ActionPerformed(evt);
            }
        });

        jButton41.setBackground(new java.awt.Color(255, 255, 255));
        jButton41.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton41.setForeground(new java.awt.Color(235, 30, 30));
        jButton41.setText("Activar");
        jButton41.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton41ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(jLabel47)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField22, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                        .addComponent(jButton41)
                        .addGap(116, 116, 116))))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap(19, Short.MAX_VALUE)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel47))
                .addGap(18, 18, 18)
                .addComponent(jButton41)
                .addContainerGap())
        );

        jPanel29.setBackground(new java.awt.Color(255, 255, 255));
        jPanel29.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Desactivar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel29.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel63.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel63.setForeground(new java.awt.Color(130, 134, 135));
        jLabel63.setText("Codigo");

        jTextField33.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField33.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField33ActionPerformed(evt);
            }
        });

        jButton35.setBackground(new java.awt.Color(255, 255, 255));
        jButton35.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton35.setForeground(new java.awt.Color(235, 30, 30));
        jButton35.setText("Desactivar");
        jButton35.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton35ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);
        jPanel29.setLayout(jPanel29Layout);
        jPanel29Layout.setHorizontalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel29Layout.createSequentialGroup()
                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel29Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel63)
                        .addGap(18, 18, 18)
                        .addComponent(jTextField33, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE))
                    .addGroup(jPanel29Layout.createSequentialGroup()
                        .addGap(124, 124, 124)
                        .addComponent(jButton35)))
                .addContainerGap())
        );
        jPanel29Layout.setVerticalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel63))
                .addGap(18, 18, 18)
                .addComponent(jButton35)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel29, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40))
        );

        jTabbedPane5.addTab("Tipo Material", jPanel1);

        jPanel30.setBackground(new java.awt.Color(255, 255, 255));

        jPanel11.setBackground(new java.awt.Color(255, 255, 255));
        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Registrar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel11.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel32.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel32.setForeground(new java.awt.Color(130, 134, 135));
        jLabel32.setText("Codigo");

        jLabel33.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel33.setForeground(new java.awt.Color(130, 134, 135));
        jLabel33.setText("Nombre");

        jLabel34.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel34.setForeground(new java.awt.Color(130, 134, 135));
        jLabel34.setText("Descripcion");

        jTextField8.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField8ActionPerformed(evt);
            }
        });

        jTextField9.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField9ActionPerformed(evt);
            }
        });

        jButton31.setBackground(new java.awt.Color(255, 255, 255));
        jButton31.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton31.setForeground(new java.awt.Color(235, 30, 30));
        jButton31.setText("Registrar ");
        jButton31.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton31ActionPerformed(evt);
            }
        });

        jTADescripcionPalabra1.setColumns(20);
        jTADescripcionPalabra1.setFont(new java.awt.Font("Verdana", 0, 12));
        jTADescripcionPalabra1.setLineWrap(true);
        jTADescripcionPalabra1.setRows(5);
        jScrollPane2.setViewportView(jTADescripcionPalabra1);

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 334, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel11Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel33)
                                .addComponent(jLabel32))
                            .addGap(40, 40, 40)
                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jTextField9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
                                .addComponent(jTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel11Layout.createSequentialGroup()
                            .addGap(122, 122, 122)
                            .addComponent(jButton31)))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGap(132, 132, 132)
                        .addComponent(jLabel34)))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel32))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel33)
                    .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jButton31)
                .addContainerGap())
        );

        jPanel31.setBackground(new java.awt.Color(255, 255, 255));
        jPanel31.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel31.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel64.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel64.setForeground(new java.awt.Color(130, 134, 135));
        jLabel64.setText("Codigo");

        jLabel65.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel65.setForeground(new java.awt.Color(130, 134, 135));
        jLabel65.setText("Nombre");

        jLabel66.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel66.setForeground(new java.awt.Color(130, 134, 135));
        jLabel66.setText("Descripcion");

        jTextField34.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField34.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField34ActionPerformed(evt);
            }
        });

        jTextField38.setEditable(false);
        jTextField38.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField38.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField38ActionPerformed(evt);
            }
        });

        jButton42.setBackground(new java.awt.Color(255, 255, 255));
        jButton42.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton42.setForeground(new java.awt.Color(235, 30, 30));
        jButton42.setText("Modificar");
        jButton42.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton42ActionPerformed(evt);
            }
        });

        jButton6.setBackground(new java.awt.Color(255, 255, 255));
        jButton6.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton6.setForeground(new java.awt.Color(235, 30, 30));
        jButton6.setText("Guardar");
        jButton6.setEnabled(false);
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jTADescripcionPalabra2.setColumns(10);
        jTADescripcionPalabra2.setEditable(false);
        jTADescripcionPalabra2.setFont(new java.awt.Font("Verdana", 0, 12));
        jTADescripcionPalabra2.setLineWrap(true);
        jTADescripcionPalabra2.setRows(4);
        jTADescripcionPalabra2.setWrapStyleWord(true);
        jTADescripcionPalabra2.setOpaque(false);
        jScrollPane4.setViewportView(jTADescripcionPalabra2);

        javax.swing.GroupLayout jPanel31Layout = new javax.swing.GroupLayout(jPanel31);
        jPanel31.setLayout(jPanel31Layout);
        jPanel31Layout.setHorizontalGroup(
            jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel31Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel31Layout.createSequentialGroup()
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(jPanel31Layout.createSequentialGroup()
                        .addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel64)
                            .addComponent(jLabel65))
                        .addGap(40, 40, 40)
                        .addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField38, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel31Layout.createSequentialGroup()
                                .addComponent(jTextField34, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton42)))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel31Layout.createSequentialGroup()
                        .addComponent(jButton6)
                        .addGap(132, 132, 132))))
            .addGroup(jPanel31Layout.createSequentialGroup()
                .addGap(134, 134, 134)
                .addComponent(jLabel66)
                .addContainerGap(140, Short.MAX_VALUE))
        );
        jPanel31Layout.setVerticalGroup(
            jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel31Layout.createSequentialGroup()
                .addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel64)
                    .addComponent(jTextField34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton42))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel65)
                    .addComponent(jTextField38, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel66)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jButton6)
                .addContainerGap())
        );

        jPanel32.setBackground(new java.awt.Color(255, 255, 255));
        jPanel32.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Activar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel32.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel67.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel67.setForeground(new java.awt.Color(130, 134, 135));
        jLabel67.setText("Codigo");

        jButton44.setBackground(new java.awt.Color(255, 255, 255));
        jButton44.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton44.setForeground(new java.awt.Color(235, 30, 30));
        jButton44.setText("Activar");
        jButton44.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton44ActionPerformed(evt);
            }
        });

        jTextField41.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField41.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField41ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel32Layout = new javax.swing.GroupLayout(jPanel32);
        jPanel32.setLayout(jPanel32Layout);
        jPanel32Layout.setHorizontalGroup(
            jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel32Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel32Layout.createSequentialGroup()
                        .addComponent(jLabel67)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField41, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel32Layout.createSequentialGroup()
                        .addComponent(jButton44)
                        .addGap(89, 89, 89))))
        );
        jPanel32Layout.setVerticalGroup(
            jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel32Layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addGroup(jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel67)
                    .addComponent(jTextField41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton44)
                .addContainerGap(15, Short.MAX_VALUE))
        );

        jPanel33.setBackground(new java.awt.Color(255, 255, 255));
        jPanel33.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Desactivar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel33.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel68.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel68.setForeground(new java.awt.Color(130, 134, 135));
        jLabel68.setText("Codigo");

        jButton43.setBackground(new java.awt.Color(255, 255, 255));
        jButton43.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton43.setForeground(new java.awt.Color(235, 30, 30));
        jButton43.setText("Desactivar");
        jButton43.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton43ActionPerformed(evt);
            }
        });

        jTextField40.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField40.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField40ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel33Layout = new javax.swing.GroupLayout(jPanel33);
        jPanel33.setLayout(jPanel33Layout);
        jPanel33Layout.setHorizontalGroup(
            jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel33Layout.createSequentialGroup()
                .addGroup(jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel33Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel68)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField40, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE))
                    .addGroup(jPanel33Layout.createSequentialGroup()
                        .addGap(129, 129, 129)
                        .addComponent(jButton43)))
                .addContainerGap())
        );
        jPanel33Layout.setVerticalGroup(
            jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel33Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel68)
                    .addComponent(jTextField40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButton43)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel34.setBackground(new java.awt.Color(255, 255, 255));

        jButton14.setBackground(new java.awt.Color(255, 255, 255));
        jButton14.setFont(new java.awt.Font("Verdana", 1, 14));
        jButton14.setForeground(new java.awt.Color(235, 30, 30));
        jButton14.setText("Limpiar Todo");
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel34Layout = new javax.swing.GroupLayout(jPanel34);
        jPanel34.setLayout(jPanel34Layout);
        jPanel34Layout.setHorizontalGroup(
            jPanel34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel34Layout.createSequentialGroup()
                .addGap(292, 292, 292)
                .addComponent(jButton14)
                .addContainerGap(310, Short.MAX_VALUE))
        );
        jPanel34Layout.setVerticalGroup(
            jPanel34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel34Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton14)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel30Layout = new javax.swing.GroupLayout(jPanel30);
        jPanel30.setLayout(jPanel30Layout);
        jPanel30Layout.setHorizontalGroup(
            jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel30Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel30Layout.createSequentialGroup()
                        .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jPanel34, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel30Layout.setVerticalGroup(
            jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel30Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(50, 50, 50)
                .addComponent(jPanel34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(30, Short.MAX_VALUE))
        );

        jTabbedPane5.addTab("Palabras Clave", jPanel30);

        jPanel37.setBackground(new java.awt.Color(255, 255, 255));

        jPanel10.setBackground(new java.awt.Color(255, 255, 255));
        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Registrar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel10.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel29.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel29.setForeground(new java.awt.Color(130, 134, 135));
        jLabel29.setText("Codigo");

        jLabel30.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel30.setForeground(new java.awt.Color(130, 134, 135));
        jLabel30.setText("Nombres");

        jLabel31.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel31.setForeground(new java.awt.Color(130, 134, 135));
        jLabel31.setText("Apellidos");

        jTextField5.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField5ActionPerformed(evt);
            }
        });

        jTextField6.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField6ActionPerformed(evt);
            }
        });

        jTextField7.setFont(new java.awt.Font("Verdana", 0, 12));

        jButton19.setBackground(new java.awt.Color(255, 255, 255));
        jButton19.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton19.setForeground(new java.awt.Color(235, 30, 30));
        jButton19.setText("Registrar Autor");
        jButton19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton19ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel29)
                    .addComponent(jLabel30)
                    .addComponent(jLabel31))
                .addGap(24, 24, 24)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jButton19))
                    .addComponent(jTextField5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
                    .addComponent(jTextField6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
                    .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel29)
                    .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton19)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel23.setBackground(new java.awt.Color(255, 255, 255));
        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel23.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel46.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel46.setForeground(new java.awt.Color(130, 134, 135));
        jLabel46.setText("Codigo");

        jLabel48.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel48.setForeground(new java.awt.Color(130, 134, 135));
        jLabel48.setText("Nombres");

        jLabel49.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel49.setForeground(new java.awt.Color(130, 134, 135));
        jLabel49.setText("Apellidos");

        jTextField21.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField21ActionPerformed(evt);
            }
        });

        jTextField23.setEditable(false);
        jTextField23.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField23ActionPerformed(evt);
            }
        });

        jTextField25.setEditable(false);
        jTextField25.setFont(new java.awt.Font("Verdana", 0, 12));

        jButton22.setBackground(new java.awt.Color(255, 255, 255));
        jButton22.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton22.setForeground(new java.awt.Color(235, 30, 30));
        jButton22.setText("Modificar");
        jButton22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton22ActionPerformed(evt);
            }
        });

        jButton3.setBackground(new java.awt.Color(255, 255, 255));
        jButton3.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton3.setForeground(new java.awt.Color(235, 30, 30));
        jButton3.setText("Guardar");
        jButton3.setEnabled(false);
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel46)
                            .addComponent(jLabel49)
                            .addComponent(jLabel48))
                        .addGap(24, 24, 24)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                                .addComponent(jTextField21, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton22))
                            .addComponent(jTextField25, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
                            .addComponent(jTextField23, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)))
                    .addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING))
                .addContainerGap())
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel46)
                    .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton22))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel48))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel49)
                    .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton3)
                .addContainerGap())
        );

        jPanel15.setBackground(new java.awt.Color(255, 255, 255));
        jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Desactivar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel15.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel44.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel44.setForeground(new java.awt.Color(130, 134, 135));
        jLabel44.setText("Codigo");

        jTextField19.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField19ActionPerformed(evt);
            }
        });

        jButton20.setBackground(new java.awt.Color(255, 255, 255));
        jButton20.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton20.setForeground(new java.awt.Color(235, 30, 30));
        jButton20.setText("Desactivar Autor");
        jButton20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton20ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addComponent(jLabel44)
                        .addGap(4, 4, 4)
                        .addComponent(jTextField19, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                        .addComponent(jButton20)
                        .addGap(85, 85, 85))))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel44))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                .addComponent(jButton20)
                .addContainerGap())
        );

        jPanel38.setBackground(new java.awt.Color(255, 255, 255));
        jPanel38.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Activar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel38.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel45.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel45.setForeground(new java.awt.Color(130, 134, 135));
        jLabel45.setText("Codigo");

        jTextField20.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField20ActionPerformed(evt);
            }
        });

        jButton21.setBackground(new java.awt.Color(255, 255, 255));
        jButton21.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton21.setForeground(new java.awt.Color(235, 30, 30));
        jButton21.setText("Activar Autor");
        jButton21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton21ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel38Layout = new javax.swing.GroupLayout(jPanel38);
        jPanel38.setLayout(jPanel38Layout);
        jPanel38Layout.setHorizontalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel38Layout.createSequentialGroup()
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel45)
                        .addGap(4, 4, 4)
                        .addComponent(jTextField20, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE))
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addGap(106, 106, 106)
                        .addComponent(jButton21)))
                .addContainerGap())
        );
        jPanel38Layout.setVerticalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel38Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel45))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                .addComponent(jButton21)
                .addContainerGap())
        );

        jPanel40.setBackground(new java.awt.Color(255, 255, 255));

        jButton16.setBackground(new java.awt.Color(255, 255, 255));
        jButton16.setFont(new java.awt.Font("Verdana", 1, 14));
        jButton16.setForeground(new java.awt.Color(235, 30, 30));
        jButton16.setText("Limpiar Todo");
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel40Layout = new javax.swing.GroupLayout(jPanel40);
        jPanel40.setLayout(jPanel40Layout);
        jPanel40Layout.setHorizontalGroup(
            jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel40Layout.createSequentialGroup()
                .addGap(292, 292, 292)
                .addComponent(jButton16)
                .addContainerGap(316, Short.MAX_VALUE))
        );
        jPanel40Layout.setVerticalGroup(
            jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel40Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton16)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel37Layout = new javax.swing.GroupLayout(jPanel37);
        jPanel37.setLayout(jPanel37Layout);
        jPanel37Layout.setHorizontalGroup(
            jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel37Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel37Layout.createSequentialGroup()
                        .addGroup(jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jPanel15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel38, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(67, 67, 67))
                    .addGroup(jPanel37Layout.createSequentialGroup()
                        .addComponent(jPanel40, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel37Layout.setVerticalGroup(
            jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel37Layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addGroup(jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(53, 53, 53)
                .addComponent(jPanel40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(126, Short.MAX_VALUE))
        );

        jTabbedPane5.addTab("Autores", jPanel37);

        jPanel13.setBackground(new java.awt.Color(255, 255, 255));

        jPanel12.setBackground(new java.awt.Color(255, 255, 255));
        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Registrar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel12.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel35.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel35.setForeground(new java.awt.Color(130, 134, 135));
        jLabel35.setText("Codigo");

        jLabel36.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel36.setForeground(new java.awt.Color(130, 134, 135));
        jLabel36.setText("Nombre");

        jLabel37.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel37.setForeground(new java.awt.Color(130, 134, 135));
        jLabel37.setText("Descripcion");

        jTextField11.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField11ActionPerformed(evt);
            }
        });

        jTextField12.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField12ActionPerformed(evt);
            }
        });

        jButton32.setBackground(new java.awt.Color(255, 255, 255));
        jButton32.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jButton32.setForeground(new java.awt.Color(235, 30, 30));
        jButton32.setText("Registrar");
        jButton32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton32ActionPerformed(evt);
            }
        });

        jTADescripcionArea1.setColumns(20);
        jTADescripcionArea1.setFont(new java.awt.Font("Verdana", 0, 12));
        jTADescripcionArea1.setLineWrap(true);
        jTADescripcionArea1.setRows(5);
        jScrollPane5.setViewportView(jTADescripcionArea1);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel12Layout.createSequentialGroup()
                                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel35)
                                    .addComponent(jLabel36))
                                .addGap(32, 32, 32)
                                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextField12, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                                    .addComponent(jTextField11, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)))))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGap(105, 105, 105)
                        .addComponent(jLabel37)))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addContainerGap(120, Short.MAX_VALUE)
                .addComponent(jButton32)
                .addGap(114, 114, 114))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel35)
                    .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel37)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton32)
                .addGap(18, 18, 18))
        );

        jPanel26.setBackground(new java.awt.Color(255, 255, 255));
        jPanel26.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel26.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jPanel28.setBackground(new java.awt.Color(255, 255, 255));
        jPanel28.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Agregar Subarea", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N

        jTextField37.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField37.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField37ActionPerformed(evt);
            }
        });

        jLabel61.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel61.setForeground(new java.awt.Color(130, 134, 135));
        jLabel61.setText("Codigo de  Area");

        jButton1.setBackground(new java.awt.Color(255, 255, 255));
        jButton1.setFont(new java.awt.Font("Verdana", 1, 12));
        jButton1.setForeground(new java.awt.Color(235, 30, 30));
        jButton1.setText("Agregar o Quitar SubArea");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28);
        jPanel28.setLayout(jPanel28Layout);
        jPanel28Layout.setHorizontalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel28Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel28Layout.createSequentialGroup()
                        .addComponent(jLabel61)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField37, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel28Layout.createSequentialGroup()
                        .addComponent(jButton1)
                        .addGap(33, 33, 33))))
        );
        jPanel28Layout.setVerticalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel28Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel61)
                    .addComponent(jTextField37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addComponent(jButton1)
                .addContainerGap(35, Short.MAX_VALUE))
        );

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));

        jButton40.setBackground(new java.awt.Color(255, 255, 255));
        jButton40.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jButton40.setForeground(new java.awt.Color(235, 30, 30));
        jButton40.setText("Modificar");
        jButton40.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton40ActionPerformed(evt);
            }
        });

        jButton2.setBackground(new java.awt.Color(255, 255, 255));
        jButton2.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jButton2.setForeground(new java.awt.Color(235, 30, 30));
        jButton2.setText("Guardar");
        jButton2.setEnabled(false);
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel60.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel60.setForeground(new java.awt.Color(130, 134, 135));
        jLabel60.setText("Descripcion");

        jLabel59.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel59.setForeground(new java.awt.Color(130, 134, 135));
        jLabel59.setText("Nombre");

        jTextField35.setEditable(false);
        jTextField35.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField35.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField35ActionPerformed(evt);
            }
        });

        jTextField32.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField32ActionPerformed(evt);
            }
        });

        jLabel58.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel58.setForeground(new java.awt.Color(130, 134, 135));
        jLabel58.setText("Codigo");

        jTADescripcionArea2.setColumns(10);
        jTADescripcionArea2.setEditable(false);
        jTADescripcionArea2.setFont(new java.awt.Font("Verdana", 0, 12));
        jTADescripcionArea2.setLineWrap(true);
        jTADescripcionArea2.setRows(4);
        jTADescripcionArea2.setWrapStyleWord(true);
        jTADescripcionArea2.setOpaque(false);
        jScrollPane6.setViewportView(jTADescripcionArea2);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel59)
                                    .addComponent(jLabel58))
                                .addGap(51, 51, 51)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel60)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                                        .addComponent(jTextField32, javax.swing.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jButton40))
                                    .addComponent(jTextField35, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE)))
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addComponent(jButton2)
                        .addGap(109, 109, 109))))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel58)
                    .addComponent(jButton40))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel59))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel60)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);
        jPanel26.setLayout(jPanel26Layout);
        jPanel26Layout.setHorizontalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel26Layout.setVerticalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel26Layout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(9, Short.MAX_VALUE))
        );

        jPanel20.setBackground(new java.awt.Color(255, 255, 255));
        jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Activar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel20.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel53.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel53.setForeground(new java.awt.Color(130, 134, 135));
        jLabel53.setText("Codigo");

        jTextField27.setFont(new java.awt.Font("Verdana", 0, 12));
        jTextField27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField27ActionPerformed(evt);
            }
        });

        jButton37.setBackground(new java.awt.Color(255, 255, 255));
        jButton37.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jButton37.setForeground(new java.awt.Color(235, 30, 30));
        jButton37.setText("Activar");
        jButton37.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton37ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(jLabel53)
                        .addGap(4, 4, 4)
                        .addComponent(jTextField27, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()
                        .addComponent(jButton37)
                        .addGap(123, 123, 123))))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel53))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton37)
                .addContainerGap())
        );

        jPanel36.setBackground(new java.awt.Color(255, 255, 255));
        jPanel36.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Desactivar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 14), new java.awt.Color(235, 30, 30))); // NOI18N
        jPanel36.setForeground(javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem.selectionBackground"));

        jLabel69.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel69.setForeground(new java.awt.Color(130, 134, 135));
        jLabel69.setText("Codigo");

        jTextField39.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
        jTextField39.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField39ActionPerformed(evt);
            }
        });

        jButton47.setBackground(new java.awt.Color(255, 255, 255));
        jButton47.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jButton47.setForeground(new java.awt.Color(235, 30, 30));
        jButton47.setText("Desactivar");
        jButton47.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton47ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel36Layout = new javax.swing.GroupLayout(jPanel36);
        jPanel36.setLayout(jPanel36Layout);
        jPanel36Layout.setHorizontalGroup(
            jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel36Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel36Layout.createSequentialGroup()
                        .addComponent(jLabel69)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField39, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel36Layout.createSequentialGroup()
                        .addComponent(jButton47)
                        .addGap(112, 112, 112))))
        );
        jPanel36Layout.setVerticalGroup(
            jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel36Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel69))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton47)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel39.setBackground(new java.awt.Color(255, 255, 255));

        jButton15.setBackground(new java.awt.Color(255, 255, 255));
        jButton15.setFont(new java.awt.Font("Verdana", 1, 14));
        jButton15.setForeground(new java.awt.Color(235, 30, 30));
        jButton15.setText("Limpiar Todo");
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel39Layout = new javax.swing.GroupLayout(jPanel39);
        jPanel39.setLayout(jPanel39Layout);
        jPanel39Layout.setHorizontalGroup(
            jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel39Layout.createSequentialGroup()
                .addGap(292, 292, 292)
                .addComponent(jButton15)
                .addContainerGap(310, Short.MAX_VALUE))
        );
        jPanel39Layout.setVerticalGroup(
            jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel39Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton15)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel36, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(jPanel26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel36, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addComponent(jPanel39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12))
        );

        jTabbedPane5.addTab("Areas de Conocimiento", jPanel13);

        jLabel62.setBackground(new java.awt.Color(255, 255, 255));
        jLabel62.setFont(new java.awt.Font("Verdana", 1, 22));
        jLabel62.setForeground(new java.awt.Color(235, 30, 30));
        jLabel62.setText("Otras Gestiones");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(279, 279, 279)
                .addComponent(jLabel62)
                .addContainerGap(294, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jTabbedPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 762, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel62)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jTabbedPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 579, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jTextField17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField17ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField17ActionPerformed

    private void jTextField18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField18ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField18ActionPerformed

    private void jButton34ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton34ActionPerformed
        // TODO add your handling code here:
        ControladorTipoMaterial controlador= new ControladorTipoMaterial();
        boolean completo = true;
        
        String mensaje = "Hay errores en el registro del Tipo de Material:     " + "\n\n";
        if(jTextField17.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && controlador.existeCodigo(jTextField17.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado ya existe." + "\n";
        }
        
        if(jTextField18.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombre está vacío." + "\n";
        }
        if(jTADescripcioTipo1.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Descripcion está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField17.getText();
            String  nombre = jTextField18.getText();
            String  descripcion = jTADescripcioTipo1.getText();
            
            controlador.insertarTipo(codigo, nombre, descripcion);
            
            JOptionPane.showMessageDialog(this, "El Tipo de Material fue registrado con "
                    + "éxito y con la siguiente informacion:"
                    + "\n\nCodigo: "+ codigo +"\nNombre: "+
                    nombre + "\nDescripcion: " + descripcion);
            jTextField17.setText("");
            jTextField18.setText("");
            jTADescripcioTipo1.setText("");
        } 
        else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton34ActionPerformed

    private void jTextField26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField26ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField26ActionPerformed

    private void jTextField28ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField28ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField28ActionPerformed

    private void jButton38ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton38ActionPerformed
        // TODO add your handling code here:
        ControladorTipoMaterial controlador= new ControladorTipoMaterial();
        boolean completo = true;
        int respuesta=-1;
        Vector a= new Vector();
        
        String mensaje = "Se presentaron los siguientes errores:     " + "\n\n";
        if(jTextField26.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField26.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo){
            a = controlador.consultarTipo(jTextField26.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea modificar el Tipo de material " + a.elementAt(0) + ": "
                    + a.elementAt(1) + " " + a.elementAt(2) + "?");
        }
        if(!completo){
            JOptionPane.showMessageDialog(this, mensaje, "Error en modificacion",
                    JOptionPane.ERROR_MESSAGE);
        }
        if(completo && respuesta == JOptionPane.YES_OPTION){
            jTextField26.setEditable(false);
            jTextField28.setEditable(true);
            jTextField28.setText((String)a.elementAt(1));
            jTADescripcioTipo2.setEditable(true);
            jTADescripcioTipo2.setOpaque(true);
            jTADescripcioTipo2.setText((String)a.elementAt(2));
            jButton5.setEnabled(true);
            jButton38.setEnabled(false);
            
            campo1 = jTextField28.getText();
            campo2 = jTADescripcioTipo2.getText();
        }
        if(respuesta == JOptionPane.NO_OPTION){
            jTextField26.setEditable(true);
            jTextField26.setText("");
            jTextField28.setEditable(false);
            jTextField28.setText("");
            jTADescripcioTipo2.setEditable(false);
            jTADescripcioTipo2.setOpaque(false);
            jTADescripcioTipo2.setText("");
            jButton5.setEnabled(false);
            jButton38.setEnabled(true);
            
            campo1 = "";
            campo2 = "";
        }
}//GEN-LAST:event_jButton38ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        // TODO add your handling code here:
        ControladorTipoMaterial controlador= new ControladorTipoMaterial();
        boolean completo = true;
        
        String mensaje = "Hay errores en la modificacion del Tipo de Material:     " + "\n\n";
        if(jTextField28.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombre está vacío." + "\n";
        }
        if(jTADescripcioTipo2.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Descripcion está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField26.getText();
            String  nombre = jTextField28.getText();
            String  descripcion = jTADescripcioTipo2.getText();
            String salida = "";
            
            if(!nombre.equals(campo1)){
                controlador.modificarTipo(1, codigo, nombre);
                salida+="Nombre:    " + campo1 + "    ---->    " + nombre + "\n";
            }
            
            if(!descripcion.equals(campo2)){
                controlador.modificarTipo(2, codigo, descripcion);
                salida+="Descripcion:    " + campo2 + "    ---->    " + descripcion + "\n";
            }
            
            if(!salida.equals(""))
                JOptionPane.showMessageDialog(this, "Al Tipo de Material con codigo : " + codigo
                        +" se le realizara la siguiente modificacion:"
                        + "\n\n"+ salida);
            
            jTextField26.setEditable(true);
            jTextField26.setText("");
            jTextField28.setEditable(false);
            jTextField28.setText("");
            jTADescripcioTipo2.setEditable(false);
            jTADescripcioTipo2.setText("");
            jButton5.setEnabled(false);
            jButton38.setEnabled(true);
            
            campo1 = "";
            campo2 = "";
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton5ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton13ActionPerformed

    private void jTextField22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField22ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField22ActionPerformed

    private void jButton35ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton35ActionPerformed
        // TODO add your handling code here:
        ControladorTipoMaterial controlador= new ControladorTipoMaterial();
        Vector a = new Vector();
        int respuesta = -1;
        boolean completo = true;
        
        String mensaje = "Hay errores en la desactivacion del Tipo de Material:     " + "\n\n";
        if(jTextField33.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField33.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo && !controlador.esActivado(jTextField33.getText())){
            completo = false;
            mensaje += "-> El Tipo de Material con el codigo ingresado ya ha sido desactivado." + "\n";
        }
        if(completo){
            a = controlador.consultarTipo(jTextField33.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea desactivar el Tipo de Material " + a.elementAt(0) + ": "
                    + a.elementAt(1) + " " + a.elementAt(2) + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                controlador.descativarTipo(jTextField33.getText());
                JOptionPane.showMessageDialog(this, "El Tipo de Material ha sido desactivado");
                jTextField33.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de desactivación",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton35ActionPerformed

    private void jTextField33ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField33ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField33ActionPerformed

    private void jButton41ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton41ActionPerformed
        // TODO add your handling code here:
        ControladorTipoMaterial control = new ControladorTipoMaterial();
        TipoMaterial t = new TipoMaterial();
        int respuesta = -1;
        boolean completo = true;
                
        String mensaje = "Hay errores en la activación del Tipo de Material:     " + "\n\n"; 
        if(jTextField22.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo del Tipo de Material está vacío." + "\n";
        }
        if(completo && !control.existeCodigo(jTextField22.getText())){
            completo = false;
            mensaje += "-> El Codigo del Tipo de Material ingresado no existe." + "\n";
        }
        if(completo && control.esActivado(jTextField22.getText())){
            completo = false;
            mensaje += "-> El Tipo de Material con el codigo ingresado está activado." + "\n";
        }
        if(completo){
            t = control.retornarTipo(jTextField22.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea activar el Tipo de Material " + t.mostrarmeEnPantalla() + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                control.activarTipo(jTextField22.getText());
                JOptionPane.showMessageDialog(this, "El Tipo de Material ha sido activado");
                jTextField22.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de activación",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton41ActionPerformed

    private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField8ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField8ActionPerformed

    private void jTextField9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField9ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField9ActionPerformed

    private void jButton31ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton31ActionPerformed
        // TODO add your handling code here:
        ControladorPalabraClave controlador= new ControladorPalabraClave();
        boolean completo = true;
        
        String mensaje = "Hay errores en el registro de la Palabra Clave:     " + "\n\n";
        if(jTextField8.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && controlador.existeCodigo(jTextField8.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado ya existe." + "\n";
        }
        
        if(jTextField9.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombre está vacío." + "\n";
        }
        if(jTADescripcionPalabra1.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Descripcion está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField8.getText();
            String  nombre = jTextField9.getText();
            String  descripcion = jTADescripcionPalabra1.getText();
            
            controlador.insertarPalabra(codigo, nombre, descripcion);
            
            JOptionPane.showMessageDialog(this, "La Palabra Clave fue registrada con "
                    + "éxito y con la siguiente informacion:"
                    + "\n\nCodigo: "+ codigo +"\nNombre: "+
                    nombre + "\nDescripcion: " + descripcion);
            jTextField8.setText("");
            jTextField9.setText("");
            jTADescripcionPalabra1.setText("");
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton31ActionPerformed

    private void jTextField34ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField34ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField34ActionPerformed

    private void jTextField38ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField38ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField38ActionPerformed

    private void jButton42ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton42ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton42ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton6ActionPerformed

    private void jTextField40ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField40ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField40ActionPerformed

    private void jButton43ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton43ActionPerformed
        // TODO add your handling code here:
        ControladorPalabraClave controlador= new ControladorPalabraClave();
        PalabraClave p = new PalabraClave();
        int respuesta = -1;
        boolean completo = true;
        
        String mensaje = "Hay errores en la desactivación de la Palabra Clave:     " + "\n\n";
        if(jTextField40.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField40.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo && !controlador.esActivado(jTextField40.getText())){
            completo = false;
            mensaje += "-> La Palabra Clave con el codigo ingresado ya ha sido desactivada." + "\n";
        }
        if(completo){
            p = controlador.retornarPalabra(jTextField40.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea desactivar la Palabra Clave " + p.mostrarmeEnPantalla()+"?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                controlador.descativarPalabra(jTextField40.getText());
                JOptionPane.showMessageDialog(this, "La Palabra Clave ha sido desactivada");
                jTextField40.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de desactivación",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton43ActionPerformed

    private void jTextField41ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField41ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField41ActionPerformed

    private void jButton44ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton44ActionPerformed
        // TODO add your handling code here:
        ControladorPalabraClave control = new ControladorPalabraClave();
        PalabraClave p = new PalabraClave();
        int respuesta = -1;
        boolean completo = true;
                
        String mensaje = "Hay errores en la activación de la Palabra Clave:     " + "\n\n"; 
        if(jTextField41.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo de la Palabra Clave está vacío." + "\n";
        }
        if(completo && !control.existeCodigo(jTextField41.getText())){
            completo = false;
            mensaje += "-> El Codigo la Palabra Clave ingresado no existe." + "\n";
        }
        if(completo && control.esActivado(jTextField41.getText())){
            completo = false;
            mensaje += "-> La Palabra Clave con el codigo ingresado está activada." + "\n";
        }
        if(completo){
            p = control.retornarPalabra(jTextField41.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea activar la Palabra Clave " + p.mostrarmeEnPantalla() + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                control.activarPalabra(jTextField41.getText());
                JOptionPane.showMessageDialog(this, "La Palabra Clave ha sido activada");
                jTextField41.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de activación",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton44ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton14ActionPerformed

    private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField5ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField5ActionPerformed

    private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField6ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField6ActionPerformed

    private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton19ActionPerformed
        // TODO add your handling code here:
        ControladorAutor controlador= new ControladorAutor();
        boolean completo = true;
        
        String mensaje = "Hay errores en el registro del Autor:     " + "\n\n";
        if(jTextField5.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && controlador.existeCodigo(jTextField5.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado ya existe." + "\n";
        }
        
        if(jTextField6.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombres está vacío." + "\n";
        }
        if(jTextField7.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Apellidos está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField5.getText();
            String  nombres = jTextField6.getText();
            String  apellidos = jTextField7.getText();
            
            controlador.insertarAutor(codigo, nombres, apellidos);
            
            JOptionPane.showMessageDialog(this, "El Autor fue registrado con "
                    + "éxito y con la siguiente informacion:"
                    + "\n\nCodigo: "+ codigo +"\nNombres: "+
                    nombres + "\nApellidos: " + apellidos);
            jTextField5.setText("");
            jTextField6.setText("");
            jTextField7.setText("");
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton19ActionPerformed

    private void jTextField21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField21ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField21ActionPerformed

    private void jTextField23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField23ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField23ActionPerformed

    private void jButton22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton22ActionPerformed
        // TODO add your handling code here:
        ControladorAutor controlador= new ControladorAutor();
        boolean completo = true;
        int respuesta=-1;
        Vector a= new Vector();
        
        String mensaje = "Se presentaron los siguientes errores:     " + "\n\n";
        if(jTextField21.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField21.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo){
            a = controlador.consultarAutor(jTextField21.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea modificar el Autor " + a.elementAt(0) + ": "
                    + a.elementAt(1) + " " + a.elementAt(2) + "?");
        }
        if(!completo){
            JOptionPane.showMessageDialog(this, mensaje, "Error en modificacion",
                    JOptionPane.ERROR_MESSAGE);
        }
        if(completo && respuesta == JOptionPane.YES_OPTION){
            jTextField21.setEditable(false);
            jTextField23.setEditable(true);
            jTextField23.setText((String)a.elementAt(1));
            jTextField25.setEditable(true);
            jTextField25.setText((String)a.elementAt(2));
            jButton3.setEnabled(true);
            jButton22.setEnabled(false);
            
            campo1 = jTextField23.getText();
            campo2 = jTextField25.getText();
        }
        
        if(respuesta == JOptionPane.NO_OPTION){
            jTextField21.setEditable(true);
            jTextField21.setText("");
            jTextField23.setEditable(false);
            jTextField23.setText("");
            jTextField25.setEditable(false);
            jTextField25.setText("");
            jButton3.setEnabled(false);
            jButton22.setEnabled(true);
            
            campo1 = "";
            campo2 = "";
        }
}//GEN-LAST:event_jButton22ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        ControladorAutor controlador= new ControladorAutor();
        boolean completo = true;
        
        String mensaje = "Hay errores en la modificacion del Autor:     " + "\n\n";
        if(jTextField23.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombres está vacío." + "\n";
        }
        if(jTextField25.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Apellidos está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField21.getText();
            String  nombres = jTextField23.getText();
            String  apellidos = jTextField25.getText();
            String salida = "";
            
            if(!nombres.equals(campo1)){
                controlador.modificarAutor(1, codigo, nombres);
                salida+="Nombres:    " + campo1 + "    ---->    " + nombres + "\n";
            }
            
            if(!apellidos.equals(campo2)){
                controlador.modificarAutor(2, codigo, apellidos);
                salida+="Apellidos:    " + campo2 + "    ---->    " + apellidos + "\n";
            }
            
            if(!salida.equals(""))
                JOptionPane.showMessageDialog(this, "Al Autor con codigo : " + codigo
                        +" se le realizara la siguiente modificacion:"
                        + "\n\n"+ salida);
            
            jTextField21.setEditable(true);
            jTextField21.setText("");
            jTextField23.setEditable(false);
            jTextField23.setText("");
            jTextField25.setEditable(false);
            jTextField25.setText("");
            jButton3.setEnabled(false);
            jButton22.setEnabled(true);
            
            campo1 = "";
            campo2 = "";
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton3ActionPerformed

    private void jTextField19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField19ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField19ActionPerformed

    private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton20ActionPerformed
        // TODO add your handling code here:
        ControladorAutor controlador= new ControladorAutor();
        Vector a = new Vector();
        int respuesta = -1;
        boolean completo = true;
        
        String mensaje = "Hay errores en la desactivacion del Autor:     " + "\n\n";
        if(jTextField19.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField19.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo && !controlador.esActivado(jTextField19.getText())){
            completo = false;
            mensaje += "-> El Autor con el codigo ingresado ya ha sido desactivado." + "\n";
        }
        if(completo){
            a = controlador.consultarAutor(jTextField19.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea desactivar el Autor " + a.elementAt(0) + ": "
                    + a.elementAt(1) + " " + a.elementAt(2) + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                controlador.descativarAutor(jTextField19.getText());
                JOptionPane.showMessageDialog(this, "El Autor ha sido desactivado");
                jTextField19.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton20ActionPerformed

    private void jTextField20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField20ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField20ActionPerformed

    private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton21ActionPerformed
        // TODO add your handling code here:
        ControladorAutor control = new ControladorAutor();
        Autor a = new Autor();
        int respuesta = -1;
        boolean completo = true;
                
        String mensaje = "Hay errores en la activación del Autor:     " + "\n\n"; 
        if(jTextField20.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo del Autor está vacío." + "\n";
        }
        if(completo && !control.existeCodigo(jTextField20.getText())){
            completo = false;
            mensaje += "-> El Codigo del Autor ingresado no existe." + "\n";
        }
        if(completo && control.esActivado(jTextField20.getText())){
            completo = false;
            mensaje += "-> El Autor con el codigo ingresado está activado." + "\n";
        }
        if(completo){
            a = control.retornarAutor(jTextField20.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea activar el Autor " + a.mostrarmeEnPantalla() + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                control.activarAutor(jTextField20.getText());
                JOptionPane.showMessageDialog(this, "El Autor ha sido activado");
                jTextField20.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de activación",
                    JOptionPane.ERROR_MESSAGE);
        }        
}//GEN-LAST:event_jButton21ActionPerformed

    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton16ActionPerformed

    private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField11ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField11ActionPerformed

    private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField12ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField12ActionPerformed

    private void jButton32ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton32ActionPerformed
        // TODO add your handling code here:
        ControladorArea controlador= new ControladorArea();
        boolean completo = true;
        
        String mensaje = "Hay errores en el registro del Area de Conocimiento:     " + "\n\n";
        if(jTextField11.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && controlador.existeCodigo(jTextField11.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado ya existe." + "\n";
        }
        
        if(jTextField12.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombre está vacío." + "\n";
        }
        if(jTADescripcionArea1.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Descripción está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField11.getText();
            String  nombre = jTextField12.getText();
            String  descripcion = jTADescripcionArea1.getText();
            
            controlador.insertarArea(codigo, nombre, descripcion);
            
            JOptionPane.showMessageDialog(this, "EL Area de Conocimiento fue registrada con "
                    + "éxito y con la siguiente informacion:"
                    + "\n\nCodigo: "+ codigo +"\nNombre: "+
                    nombre + "\nDescripcion: " + descripcion);
            jTextField11.setText("");
            jTextField12.setText("");
            jTADescripcionArea1.setText("");
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton32ActionPerformed

    private void jTextField37ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField37ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField37ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        ControladorArea controlador= new ControladorArea();
        boolean completo = true;
        int respuesta=-1;
        Vector a= new Vector();
        
        String mensaje = "Se presentaron los siguientes errores:     " + "\n\n";
        if(jTextField37.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo Area está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField37.getText())){
            completo = false;
            mensaje += "-> El Codigo Area ingresado no existe." + "\n";
        }
        if(completo){
            a = controlador.consultarArea(jTextField37.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea agregar una SubArea a el Area de Conocimiento " + a.elementAt(0) + ": "
                    + a.elementAt(1) + "?");
        }
        if(!completo){
            JOptionPane.showMessageDialog(this, mensaje, "Error en modificacion",
                    JOptionPane.ERROR_MESSAGE);
        }
        if(completo && respuesta == JOptionPane.YES_OPTION){
            jTextField37.setEditable(false);
            AddAreasMaterial dialogoAgregarAreas = new AddAreasMaterial(null, true);
            dialogoAgregarAreas.setCaso(3);
            dialogoAgregarAreas.llenarListaDos(jTextField37.getText());
            dialogoAgregarAreas.setVisible(true);
            jTextField37.setEditable(true);
            jTextField37.setText("");
        }
        if(respuesta == JOptionPane.NO_OPTION){
            jTextField37.setEditable(true);
            jTextField37.setText("");
            jButton1.setEnabled(true);
        }
}//GEN-LAST:event_jButton1ActionPerformed

    private void jButton40ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton40ActionPerformed
        // TODO add your handling code here:
        ControladorArea controlador= new ControladorArea();
        boolean completo = true;
        int respuesta=-1;
        Vector a= new Vector();
        
        String mensaje = "Se presentaron los siguientes errores:     " + "\n\n";
        if(jTextField32.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField32.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo){
            a = controlador.consultarArea(jTextField32.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea modificar el Area de Conocimiento " + a.elementAt(0) + ": "
                    + a.elementAt(1) + " " + a.elementAt(2) + "?");
        }
        if(!completo){
            JOptionPane.showMessageDialog(this, mensaje, "Error en modificacion",
                    JOptionPane.ERROR_MESSAGE);
        }
        if(completo && respuesta == JOptionPane.YES_OPTION){
            jTextField32.setEditable(false);
            jTextField35.setEditable(true);
            jTextField35.setText((String)a.elementAt(1));
            jTADescripcionArea2.setEditable(true);
            jTADescripcionArea2.setOpaque(true);
            jTADescripcionArea2.setText((String)a.elementAt(2));
            jButton2.setEnabled(true);
            jButton40.setEnabled(false);
            
            campo1 = jTextField35.getText();
            campo2 = jTADescripcionArea2.getText();
        }
        if(respuesta == JOptionPane.NO_OPTION){
            jTextField32.setEditable(true);
            jTextField32.setText("");
            jTextField35.setEditable(false);
            jTextField35.setText("");
            jTADescripcionArea2.setEditable(false);
            jTADescripcionArea2.setText("");
            jButton2.setEnabled(false);
            jButton40.setEnabled(true);
            
            campo1 = "";
            campo2 = "";
        }
}//GEN-LAST:event_jButton40ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        ControladorArea controlador= new ControladorArea();
        boolean completo = true;
        
        String mensaje = "Hay errores en la modificacion de la Area de Conocimiento:     " + "\n\n";
        if(jTextField35.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Nombre está vacío." + "\n";
        }
        if(jTADescripcionArea2.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Descripción está vacío." + "\n";
        }
        
        if(completo){
            String  codigo = jTextField32.getText();
            String  nombre = jTextField35.getText();
            String  descripcion = jTADescripcionArea2.getText();
            String salida = "";
            
            if(!nombre.equals(campo1)){
                controlador.modificarArea(1, codigo, nombre);
                salida+="Nombre:    " + campo1 + "    ---->    " + nombre + "\n";
            }
            
            if(!descripcion.equals(campo2)){
                controlador.modificarArea(2, codigo, descripcion);
                salida+="Descripción:    " + campo2 + "    ---->    " + descripcion + "\n";
            }
            
            if(!salida.equals(""))
                JOptionPane.showMessageDialog(this, "Al Area de Conocimeinto con codigo : " + codigo
                        +" se le realizaró la siguiente modificación:"
                        + "\n\n"+ salida);
            
            jTextField32.setEditable(true);
            jTextField32.setText("");
            jTextField35.setEditable(false);
            jTextField35.setText("");
            jTADescripcionArea2.setEditable(false);
            jTADescripcionArea2.setOpaque(false);
            jTADescripcionArea2.setText("");
            jButton2.setEnabled(false);
            jButton40.setEnabled(true);
            
            campo1 = "";
            campo2 = "";
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de registro",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton2ActionPerformed

    private void jTextField35ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField35ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField35ActionPerformed

    private void jTextField32ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField32ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField32ActionPerformed

    private void jTextField27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField27ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField27ActionPerformed

    private void jButton37ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton37ActionPerformed
        // TODO add your handling code here:
        ControladorArea control = new ControladorArea();
        AreaConocimiento a = new AreaConocimiento();
        int respuesta = -1;
        boolean completo = true;
                
        String mensaje = "Hay errores en la activación del Area de Conocimiento:     " + "\n\n"; 
        if(jTextField27.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo del Area de Conocimiento está vacío." + "\n";
        }
        if(completo && !control.existeCodigo(jTextField27.getText())){
            completo = false;
            mensaje += "-> El Codigo del Area de Conocimiento ingresado no existe." + "\n";
        }
        if(completo && control.esActivado(jTextField27.getText())){
            completo = false;
            mensaje += "-> El Area de Conocimiento con el codigo ingresado está activada." + "\n";
        }
        if(completo){
            a = control.retornarArea(jTextField27.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea activar el Area de Conocimiento " + a.mostrarmeEnPantalla() + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                control.activarArea(jTextField27.getText());
                JOptionPane.showMessageDialog(this, "El Area de Conocimiento ha sido activada");
                jTextField27.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de activación",
                    JOptionPane.ERROR_MESSAGE);
        }
        
}//GEN-LAST:event_jButton37ActionPerformed

    private void jTextField39ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField39ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextField39ActionPerformed

    private void jButton47ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton47ActionPerformed
        // TODO add your handling code here:
        ControladorArea controlador= new ControladorArea();
        Vector a = new Vector();
        int respuesta = -1;
        boolean completo = true;
        
        String mensaje = "Hay errores en la desactivacion de la Area de Conocimiento:     " + "\n\n";
        if(jTextField39.getText().equals("")){
            completo = false;
            mensaje += "-> El campo Codigo está vacío." + "\n";
        }
        if(completo && !controlador.existeCodigo(jTextField39.getText())){
            completo = false;
            mensaje += "-> El Codigo ingresado no existe." + "\n";
        }
        if(completo && !controlador.esActivado(jTextField39.getText())){
            completo = false;
            mensaje += "-> El Area de Conocimiento con el codigo ingresado ya ha sido desactivada." + "\n";
        }
        if(completo){
            a = controlador.consultarArea(jTextField27.getText());
            respuesta = JOptionPane.showConfirmDialog(this, "¿Esta seguro "
                    + "que desea desactivar el Area de Conocimiento " + a.elementAt(0) + ": "
                    + a.elementAt(1) + " " + a.elementAt(2) + "?");
            
            if(respuesta == JOptionPane.YES_OPTION){
                controlador.descativarArea(jTextField27.getText());
                JOptionPane.showMessageDialog(this, "El Area de Conocimiento ha sido desactivada");
                jTextField27.setText("");
            }
            
        } else{
            JOptionPane.showMessageDialog(this, mensaje, "Error de Desactivación",
                    JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton47ActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton15ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton31;
    private javax.swing.JButton jButton32;
    private javax.swing.JButton jButton34;
    private javax.swing.JButton jButton35;
    private javax.swing.JButton jButton37;
    private javax.swing.JButton jButton38;
    private javax.swing.JButton jButton40;
    private javax.swing.JButton jButton41;
    private javax.swing.JButton jButton42;
    private javax.swing.JButton jButton43;
    private javax.swing.JButton jButton44;
    private javax.swing.JButton jButton47;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel30;
    private javax.swing.JPanel jPanel31;
    private javax.swing.JPanel jPanel32;
    private javax.swing.JPanel jPanel33;
    private javax.swing.JPanel jPanel34;
    private javax.swing.JPanel jPanel36;
    private javax.swing.JPanel jPanel37;
    private javax.swing.JPanel jPanel38;
    private javax.swing.JPanel jPanel39;
    private javax.swing.JPanel jPanel40;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTextArea jTADescripcioTipo1;
    private javax.swing.JTextArea jTADescripcioTipo2;
    private javax.swing.JTextArea jTADescripcionArea1;
    private javax.swing.JTextArea jTADescripcionArea2;
    private javax.swing.JTextArea jTADescripcionPalabra1;
    private javax.swing.JTextArea jTADescripcionPalabra2;
    private javax.swing.JTabbedPane jTabbedPane5;
    private javax.swing.JTextField jTextField11;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField20;
    private javax.swing.JTextField jTextField21;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField23;
    private javax.swing.JTextField jTextField25;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField32;
    private javax.swing.JTextField jTextField33;
    private javax.swing.JTextField jTextField34;
    private javax.swing.JTextField jTextField35;
    private javax.swing.JTextField jTextField37;
    private javax.swing.JTextField jTextField38;
    private javax.swing.JTextField jTextField39;
    private javax.swing.JTextField jTextField40;
    private javax.swing.JTextField jTextField41;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    // End of variables declaration//GEN-END:variables
}
